package com.sailor.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sailor.mapper.PersonMapper;
import com.sailor.pojo.Person;
import com.sailor.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person> implements PersonService {

    @Autowired
    private PersonMapper personMapper;
    @Override
    public Integer addPerson(Person person) {
        Integer id = personMapper.addPerson(person);
        int i = 1 / 0;
        return id;
    }
}
